import request from './config'

export const getVideo = (offset, limit = 10) => {
  return request.get(
    '/top/mv', {
      offset,
      limit
    }
  )
}

//
export const getMVURL = id => {
  return request.get(
    '/mv/url',
    {
      id
    }
  )
}

export const getMVDetail = mvid => {
  return request.get(
    '/mv/detail',
    {
      mvid
    }
  )
}

export const getMVRelated = id => {
  return request.get(
    '/related/allvideo',
    {
      id
    }
  )
}
